<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <ul>
    <li>111</li>
    <li>222</li>
    <li>333</li>
  </ul>
  <script>

    // arguments  函数参数的集合
    function add() {
      // arguments
      console.log(arguments)
      console.log(arguments[2])
    }
    add("周星驰", "刘德华", "周润发", "张家辉", [1, 2, 3, 4], function () { });
    var lis = document.querySelectorAll("ul li")
    console.log(lis)

    // 函数本身的替代
    function jcheng(n) {
      if (n == 1) {
        return 1
      } else {
        return n * arguments.callee(n - 1)//arguments.callee==jcheng
      }
    }
    //
    // var arr = ["足球", "篮球", "乒乓球"];
    // arr.map(function (ele) {
    //   arguments.callee()
    // })

  </script>
</body>

</html>